package homework0307;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class WriteStringDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("fos.dat");
        String line="就反对撒立即发送";
        byte[] date=line.getBytes(StandardCharsets.UTF_8);
        fos.write(date);
        fos.write("房价肯定撒辣椒粉".getBytes(StandardCharsets.UTF_8));
        System.out.println("写出完成");
        fos.close();


    }
}
